import request from '@/utils/request'

export const addGoodsAPI = data => {
  return request.post('/goods', data)
}

export const getAttrsAPI = (id, data) => {
  // console.log(id, 'id');
  // console.log(data, 'data');
  return request.get(`/categories/${id}/attributes`, {
    params: data
  })
}

